package routers

import (
	"train_project/controllers"
	"github.com/astaxie/beego"
)

func init() {
    beego.Router("/", &controllers.MainController{},"*:Get")
	beego.Router("/test", &controllers.MainController{},"get:Test")
    beego.Router("/blog", &controllers.BlogController{})
	beego.Router("/user" ,&controllers.UserController{})
	beego.Router("/user/:id" ,&controllers.UserController{},"get:GetOne")
    beego.Router("/create_user", &controllers.TestModelController{},"get:Get")
    beego.Router("/http_lib",&controllers.TestHttpLibController{},"get:Get")
}
